package com.zhsource.article.mapper;


import com.zhsource.article.domain.Article;
import com.zhsource.article.query.ArticleQuery;
import com.zhsource.tourist.dto.ArticleCountDto;
import com.zhsource.tourist.vo.ArchivesVo;
import com.zhsource.tourist.vo.ArticleVo;

import java.util.List;

/**
 * <p>@ClassName：ArticleMapper
 * <p>@Date 2023/10/17  23:15
 *
 * @Author zzl
 **/
public interface ArticleMapper {
    List<Article> list();

    Article selectById(Long id);

    void update(Article article);

    void insert(Article article);

    void delete(Long id);

    void batchDel(List<Long> ids);

    List<Article> page(ArticleQuery articleQuery);

    List<ArchivesVo> getArchivesTime();

    List<Article> getArticleByTag(Long articleId);

    List<Article> getArticleByArticleTypeId(Long articleTypeId);

    List<Article> getArchivesList(String time);

    List<Article> getArticleList(String time);

    List<Article> getEchartsData();

    List<ArticleCountDto> getPieChartData();
}
